/**
 * 遮罩层，依照jquery-ui方式使用
 */
(function($, undefined) {
	$.fn.mask = function(options) {
		var o = $.extend($.fn.mask.defaults, options);
		$(this).css({
					opacity : o.opacity,
					filter : "alpha(opacity=" + (o.opacity * 100) + ")",
					"background-color" : o.color,
					"z-index" : o.zIndex,
					position : "absolute",
					width : "100%",
					height : $(document).height(),
					top : 0,
					left : 0,
					display : "block"
				});
		return this;
	};
	$.fn.mask.defaults = {
		color : "#000000",
		opacity : 0.5,
		zIndex : 198
	};

})(jQuery);